package com.zzb.myInterface;


/**
 * Test测试类
 * */
public class Test {

    public static void main(String[] args) {

        //创建对象
        UITeacher ui = new UITeacher();
        JavaTeacher java = new JavaTeacher();

        //操作对象属性和方法
        //UI讲师
        ui.setAge(33);
        ui.setName("丽丽");
        ui.setSex("女");
        System.out.println(ui.toString());
        ui.paint();
        ui.work();

        //java讲师
        java.setName("老李");
        java.setSex("男");
        java.setAge(40);
        System.out.println(java.toString());
        java.work();

    }
}
